import { useSelector } from 'react-redux';
import { RootState } from '../store';
function useGetUserInfo() {
  const { username, nickname } = useSelector((state: RootState) => state.user);
  return { username, nickname };
}

export default useGetUserInfo;
